sad:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	stmfd	sp!, {r4, r5, r6, r7, r8, lr}
	ldr	r7, .L21
	ldr	r4, [r0, #0]
	ldr	r6, [r2, #0]
	ldr	r2, [r1, #0]
	add	r5, r4, r6
	ldr	r1, [r3, #0]
	add	r3, r5, r5, asl #2
	add	ip, r4, r4, asl #2
	add	r0, r2, r3, asl #7
	mov	r5, #0
	ldr	r6, .L21+4
	add	r4, r0, r1
	add	lr, r2, ip, asl #7
	mov	r8, r5
.L11:
	mov	ip, #0
.L10:
	add	r2, lr, ip
	add	r1, r4, ip
	ldr	r3, [r7, r2, asl #2]
	ldr	r0, [r6, r1, asl #2]
	add	ip, ip, #1
	rsb	r2, r0, r3
	cmp	ip, #15
	add	r5, r5, r2
	ble	.L10
	add	r8, r8, #1
	cmp	r8, #15
	add	lr, lr, #640
	add	r4, r4, #640
	ble	.L11
	mov	r0, r5
	ldmfd	sp!, {r4, r5, r6, r7, r8, pc}
.L22:
	.align	2
.L21:
	.word	frameA
	.word	frameB
